// C05:5.2:num_test.cpp -- use numeric test in for loop
#include <iostream>

int main(void)
{
    using namespace std;
    cout << "Enter the starting countdown value: ";
    int limit;
    cin >> limit;

    int i;
    for (i = limit; i; i--)
    {// quits when i is zero.
        cout << "i = " << i << "\n";
    }
    cout << "Done now that i = " << i <<"\n";
}